<template>
	<view>
		<view class="bg-white padding">
			<view class="cu-steps">
				<view class="cu-item" :class="index>num?'':'text-blue'" v-for="(item,index) in numList" :key="index">
					<text class="num" :class="index==2?'err':''" :data-index="index + 1"></text> {{item.name}}
				</view>
			</view>
		</view>
		<view class="title">
			<view class="line"></view>
			<view>不到场原因说明</view>
		</view>
		<view class="box">
			<picker class="picker" @change="bindPickerChange" :value="index" :range="array">
				<view class="picker_box">
					<view class="uni-input">{{array[index]}}</view>
					<image style="width: 50rpx;height: 50rpx;" src="../../static/3.png" mode=""></image>
				</view>
			</picker>
		</view>
		<view class="title">
			<view class="line"></view>
			<view>推送上级主管</view>
		</view>
		<view class="box">
			<picker class="picker" @change="bindPickerChange" :value="index" :range="array">
				<view class="picker_box">
					<view class="uni-input">{{array[index]}}</view>
					<image style="width: 50rpx;height: 50rpx;" src="../../static/3.png" mode=""></image>
				</view>
			</picker>
		</view>
		<view class="sub_btn">提交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['中国撒豆地方v地方腐是对吧饭i晚上的饭iu为', '美国', '巴西', '日本'],
				index: 0,
				numList: [{
					name: '订单认领'
				}, {
					name: '不到场'
				}, {
					name: '救援结束'
				}, {
					name: '车辆进站确认'
				}],
				num: 0,
			}
		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.target.value)
				this.index = e.target.value
			}
		}
	}
</script>

<style>
	.sub_btn{
		width: calc(100% - 100rpx);
		height: 80rpx;
		position: absolute;
		bottom: 100rpx;
		left: 50rpx;
		color: rgba(245, 245, 245, 1);
		font-size: 32rpx;
		font-family: Arial;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 12rpx;
		background-color: rgba(2, 128, 255, 1);
		box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(2, 128, 255, 1);
		border: 2rpx solid rgba(255, 255, 255, 0);
	}
	.picker_box>view{
		overflow: hidden;
		text-overflow:ellipsis;
		white-space: nowrap;
	}
	.picker_box{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.picker{
		width: 100%;
	}
	.box>image{
		width: 50rpx;
		height: 50rpx;
	}
	.box{
		width: calc(100% - 160rpx);
		height: 60rpx;
		margin: 0 auto;
		margin: 30rpx auto;
		border-radius: 10rpx;
		border: 1px solid #BBBBBB; 
		padding: 0 20rpx;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.line{
		width: 0;
		height: 28rpx;
		border: 3rpx solid rgba(0, 138, 245, 1);
		margin: 0 40rpx 0rpx 50rpx;
	}
	.title{
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	page{
		background-color: #FFFFFF;
	}
</style>
